#!/usr/bin/env python
#
#       sample.py
#
#       Copyright 2008 karthikeyan S.<kaarthikeyapreyan@gmail.com>
#       
#       This program is free software; you can redistribute it and/or modify
#       it under the terms of the GNU General Public License as published by
#       the Free Software Foundation; either version 2 of the License, or
#       (at your option) any later version.
#       
#       This program is distributed in the hope that it will be useful,
#       but WITHOUT ANY WARRANTY; without even the implied warranty of
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#       GNU General Public License for more details.
#       
#       You should have received a copy of the GNU General Public License
#       along with this program; if not, write to the Free Software
#       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
#       MA 02110-1301, USA.

import os

class TestClass:
	
	def __init__(self):
		"""
		Test Class without arguments
		"""
		
	def TestClassMethod(self):
		"""
		TestClass Method without args
		"""
		print "TestClassMethod"
	
	def TestClassMethodWithArgs(self,arg1,arg2):
		"""
		TestClass Method with args
		"""
		print arg1
		print arg2
		
class TestClassWithArgs:
    def __init__(self):
        """Sample Class 2"""
        test=0
        		
	def TestClassWithArgsmethWithkwargs(self,kwarg1=1):
	    """Class 2 Method 1"""
	    kwarg1=kwarg1+1
		
	def TestClassWithArgsmethWithkwargsandArgs(self,arg1,kwarg1=2):
	    """Class 2 Method 2"""
	    print kwarg1
	    print arg1
		
class MandatoryInit:
	def __init__(self,mvar1):
		mvar1=mvar1+10


def FunctionWithoutArgs():
	"""
	Function without args
	"""
	print "Function Without Args"
	
def FunctionWithArgs(farg1,farg2):
	"""
	Function with args
	"""
	farg1=farg1 +10
	print farg2

def FunctionWithkArgs(farg1,farg20=20):
	"""
	Function with kwargs
	"""
	print farg1
	farg20=farg20 +10

